(buffer_posn_from_coords): Since COL is already
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 May 1993 20:52:49 +0000 (20:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 May 1993 20:52:49 +0000 (20:52 +0000)
window-relative, don't subtract window_left.

src/dispnew.c

index 4dde895240b559db488eee0dbb397cff2d2151c3..e9c7521494a5d902278f3e55fd2e6d76826d83ae 100644 (file)
@@ -1231,7 +1231,7 @@ buffer_posn_from_coords (window, col, line)
   posn = compute_motion (startp, 0,
                         (window == XWINDOW (minibuf_window) && startp == 1
                          ? minibuf_prompt_width : 0),
-                        ZV, line, col - window_left,
+                        ZV, line, col,
                         window_width, XINT (window->hscroll), 0);
 
   current_buffer = old_current_buffer;